﻿using NetCore.Authorization.Users;
using NetCore.CustomAttributes;
using System.ComponentModel;

namespace NetCore.Entities.Organizations
{
    [Description("岗位用户")]
    public class OrganizationUser : BaseEntity
    {
        ///// <summary>
        ///// 机构(类型为岗位) OrganizationId
        ///// </summary>
        //[Description("岗位")]
        //public new int? OrganizationId { get; set; }
        /// <summary>
        /// 机构(类型为岗位)
        /// </summary>
        [NotSet, Description("机构(类型为岗位)")]
        public virtual Organization Organization { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        [Description("用户")]
        public long? UserId { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        [NotSet, Description("用户")]
        public virtual User User { get; set; }

    }
}
